package org.sws.domain.credit.repository;

import org.sws.domain.credit.aggregate.TradeAggregate;
import org.sws.domain.credit.model.entity.CreditAccountEntity;

/**
 * @Author sws
 * @Date 2025/4/1 15:49
 * @description:
 */
public interface ICreditRepository {
    /**
     * 保存用户积分流水单、调整积分账户额度
     * @param tradeAggregate 聚合对象
     */
    void saveUserCreditTradeOrder(TradeAggregate tradeAggregate);

    CreditAccountEntity queryUserCreditAccount(String userId);
}
